<?php
	$data = $plugins -> pagegroup -> getGroupById( $params[1] );
	/**
	 * Load doctype
	 */
	$plugins -> html -> doctype ( "XHTML 1.0 Strict" );
	
?>

<head>

<?php

	/**
	 * Lets load standard meta tags...
	 * ( title, content-type, author, organization, keywords, description )
	 */
	$plugins -> head -> standardMeta();
	
	/**
	 * Deny access for robots!!!! 
	 */
	$plugins -> robots -> deny();

	/**
	 * Load css template!
	 */
	$plugins -> css -> load(
		array (
			"style"     => "screen",
			"styleIE"   => "screen",
			"styleIE7"  => "screen"
		)
	);
	
?>
	<script type="text/javascript">
		var domain = "<?php echo self::$system->enviroment->url . self::$system->enviroment->access->element; ?>";
		var id       = "<?php echo $params[1]; ?>";
		var name     = "<?php echo $params[0]; ?>";
	</script>
<?php
	/**
	 * Lets go load javascript files...
	 */
	$plugins -> js -> load( array (
		"jquery-1.2.6" => false,
		//"jquery/hotkeys"    => false,
		"jquery-ui"         => false,
		"workspaceat/menu"  => false,
		//"workspaceat/hotkeys"  => false,
		"workspaceat/fastlaunch" => false,
		//"workspaceat/alerts"     => false,
		//"workspaceat/notice_window" => false,
		"workspaceat/window"     => false,
		"workspaceat/pagegroup_modify" => false,
	));
	
	/**
	$params = array (
		"name" => "beeee2",
		"type" => "parent",
		"parents" => "28",
		"status" => "true",
		"description"  => "Lore ipsum dolor sit amet lah...."
	);
	
	var_dump( $plugins -> pagegroup -> addAboutGroup( new Zend_Config ( $params ) ) );
	*/
?>
	
</head>
<body id="body">
	
	<!-- PROGRESS AREA -->
	<div class="progress" id="progress">
		<p id="pmessage">Please wait...</p>
	</div>

	<!-- STARTUP NOTICE AREA-->
	<div class="notice" id="notice">
		
		<div class="box">
			<div class="header">
				<h2>Workspace@ add accounting group - what's next :D</h2>
				
				<img class="x" id="close" src="<?php echo $plugins -> css -> getCssPath(); ?>/elements/exit_btn_notice.png" alt="Close window" />
			</div>
			
			<div class="container">
				<p>Please answer us on next question...</p>
				
				<p class="alert">Do you want to be navigated from this page or you want to add another group?</p>
				
				<p>If navigate, system will navigate you to storage start page, otherwise it will rebuilt page for
				   adding new group!</p>
				
				<a href="#" class="likebutton" id="notice_ok"  title="">Navigate</a>
				<a href="#" class="likebutton" id="notice_not" title="">Stay here!</a>
			</div>
			
			<div class="footer">&nbsp;</div>
		</div>
		
	</div>
	
	<!-- FAST LAUNCHER AREA -->
	<div class="fastlaunch" id="fastlaunch">
		
		<div class="topfix">
			<img class="x" id="launch_close" src="<?php echo $plugins -> css -> getCssPath(); ?>/elements/launch_x.png" alt="Close window" />
		</div>
		
		<div class="container">
			<h1>Workspace@ quick access</h1>
			
			<p>This area is used for quick access inside of Workspace@ features. Just start to write
			   down and system will find and save your searchs :)</p>
			   
			<input type="text" id="fastlaunch_browser" name="fastlaunch_browser" value="Start to typing..." />
		</div>
		
		<div class="bottomfix">&nbsp;</div>
	</div>
	
	<div class="fastlaunch_activator">
		
		<ul>
			<li>
			<img class="x" id="launch_btn" src="<?php echo $plugins -> css -> getCssPath(); ?>/elements/quicklaunch_btn.png" alt="Close window" />
			</li>
		</ul>
	</div>
	
	<!-- FLOATING QUICK NAVI AREA -->
	<div class="quicknavi" id="quicknavi">
		
		<div class="handler" id="quicknavi_handler">
			<div class="fukyou">
				<img class="quick_handler" id="launch_btn" src="<?php echo $plugins -> css -> getCssPath(); ?>/elements/quickmenu_title_bg.png" 
				alt="Open/Close quick navigation" />
			</div>
		</div>
		
		<div class="container" id="quicknavi_container">
			<h2>Workspace@ Engine standard shortcuts</h2>
			
			<ul>
			
				<li id="homepage_link">
					<h2>Home page</h2>
					<p><a href="<?php echo $plugins -> page -> link ( "" ); ?>" 
					    title="<?php echo $plugins -> language -> startlinktitle; ?>" >Go to Workspace@ Engine home page!</a></p>
				</li>
				
				<li id="quickl_handler">
					<h2>Quick launcher</h2>
					<p>Quick launcher will help you to easily access W@E features!</p>
				</li>
				
				<li>
					<h2>Notes</h2>
					<p id="notes_handler">Do we need to write any description for this?</p>
				</li>
			</ul>
			
			<div class="fukyou2">
				<p>There are no deadlines or alerts to show! That's good :D</p>
				
				<p>If you like to, you can define one :) LoL</p>
			</div>
		</div>
		
	</div>

	<!-- GLOBAL NAVIGATION AREA -->
	<div class="globalnavi" id ="globalnavi">
		
		<div class="navi" id="navi">
			
			<ul>
				<li>
					<h2>System preferences</h2>
					<a href="<?php echo $plugins -> page -> link ( "system" ); ?>" title="<?php echo $plugins -> language -> startlinktitle; ?>" >
						Find out more about system preferences. Here you can change stuffs like updates, access to complete system, etc...
					</a>
				</li>
				<li>
					<h2>Accounting</h2>
					<a href="<?php echo $plugins -> page -> link ( "accounting" ); ?>"
					   title="<?php echo $plugins -> language -> startlinktitle; ?>" >
						Manage user accounts, groups and your team! Please be very carefull! Deleted accounts cannot be restored!
					</a>
				</li>
				<li>
					<h2>Packages</h2>
					<a href="<?php echo $plugins -> page -> link ( "packages" ); ?>" title="<?php echo $plugins -> language -> startlinktitle; ?>" >
						Manage repository packages! Add new, delete existing or just modify! 
						Be carefull with them and read manual before any modification! 
					</a>
				</li>
				<li>
					<h2>Features</h2>
					<a href="<?php echo $plugins -> page -> link ( "features" ); ?>" title="<?php echo $plugins -> language -> startlinktitle; ?>" >
						Features are complete indipendent projects like phpbb3 which you can integrate inside of your website.
						You can add them, delete or modify! 
					</a>
				</li>
				<li>
					<h2>Pages</h2>
					<a href="<?php echo $plugins -> page -> link ( "pages" ); ?>" title="<?php echo $plugins -> language -> startlinktitle; ?>" >
						Add, modify, delete, suspend or publish existing pages. This is main area for creating new pages of your website!
					</a>
				</li>
				<li>
					<h2>Languages</h2>
					<a href="<?php echo $plugins -> page -> link ( "languages" ); ?>" 
					title="<?php echo $plugins -> language -> startlinktitle; ?>" >
						Add, modify or delete lanugages by category ( language name ) or by pages. Each page has its own languge area!
					</a>
				</li>
				<li>
					<h2>Themes</h2>
					<a href="<?php echo $plugins -> page -> link ( "themes" ); ?>" title="<?php echo $plugins -> language -> startlinktitle; ?>" >
						Manage existing or create new themes for your website. Actually it's quite easy to do anything what you want!
					</a>
				</li>
				<li>
					<h2>Storage</h2>
					<a href="<?php echo $plugins -> page -> link ( "storage" ); ?>" title="<?php echo $plugins -> language -> startlinktitle; ?>" >
						This is area where all of your documents, videos, images, etc... are stored! From here you can manage them!
					</a>
				</li>
				<li>
					<h2>Updates</h2>
					<a href="<?php echo $plugins -> page -> link ( "updates" ); ?>" title="<?php echo $plugins -> language -> startlinktitle; ?>" >
						Find out if there are any new updates for system or just packages! Be carefull and read manual before you made 
						any changes!
					</a>
				</li>
				<li>
					<h2>Task manager</h2>
					<a href="<?php echo $plugins -> page -> link ( "task" ); ?>" title="<?php echo $plugins -> language -> startlinktitle; ?>" >
						Meet task manager! Here you can add, modify or delete tasks for current project. As well you can setup alerts!
					</a>
				</li>
				<li>
					<h2>Project manager</h2>
					<a href="<?php echo $plugins -> page -> link ( "manager" ); ?>" title="<?php echo $plugins -> language -> startlinktitle; ?>" >
						This application will allow you to manage your project deadlines, timesheets, etc... Very helpfull if you ask us!
					</a>
				</li>
				<li>
					<h2>Manual</h2>
					<a href="<?php echo $plugins -> page -> link ( "manual" ); ?>" title="<?php echo $plugins -> language -> startlinktitle; ?>" >
						Find out what is this! Don't be nuts and don't say I don't need this! See screencasts, read manual and let force be with you!
					</a>
				</li>
			</ul>
			
		</div>
		
		<div class="activator" id="naviactivator">&nbsp;</div>
		
	</div>
	
	<!-- USER AREA -->
	<div class="userarea">
		
		<!-- Container exists because of bg fix. Don't remove it! -->
		<div class="container">
		
			<h1>quick user area</h1>
			
			<p>Welcome to quick user area. Click on links below to modify your user account</p>
			
			<ul>
				<li>
					<a href="<?php echo $plugins -> page -> link ( "" ); ?>" 
					title="<?php echo $plugins -> language -> startlinktitle; ?>" >Account info</a>
				</li>
				<li>
					<a href="<?php echo $plugins -> page -> link ( "" ); ?>" 
					title="<?php echo $plugins -> language -> startlinktitle; ?>" >Manage profile</a>
				</li>
				<li>
					<a href="<?php echo $plugins -> page -> link ( "" ); ?>" 
					title="<?php echo $plugins -> language -> startlinktitle; ?>" >Team area</a>
				</li>
				<li>
					<a href="<?php echo $plugins -> page -> link ( "" ); ?>" 
					title="<?php echo $plugins -> language -> startlinktitle; ?>" >Private messages (0)</a>
				</li>
				<li>
					<a href="<?php echo $plugins -> page -> link ( "authenticate/logout" ); ?>" 
					title="<?php echo $plugins -> language -> logout; ?>" ><?php echo $plugins -> language -> logout; ?></a>
				</li>
			</ul>
		</div>
		
	</div>
	
	<!-- Top fixer and alert container a.k.a area -->
	<div class="topfix">
		<div class="alert" id="basealert">
			<h1 id="balerttitle">Workspace@ activation error</h1>
			<p  id="balertmessage">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Nullam vel elit. 
			   Sed lobortis blandit lorem. Mauris dictum dolor nec eros. Integer vitae massa id odio rutrum pretium. 
			   Donec ligula leo, tristique et, tempor molestie, accumsan eget, odio. Nullam odio arcu, rutrum vitae, 
			   lobortis in, pharetra quis, nunc.</p>	
		</div>
	</div>
	
	<!-- PAGE WARPER -->
	<div class="warp">
		<div class="container" id="managepage">

			
			<div class="tabhandler">
				<ul>
					<li class="current" id="t_one"><a href="#" title="">About group</a>
				</ul>
			</div>
		
			<div class="tabs" id="tabs">
			</div>

			<div class="tabhandler" id="controls">
				<ul>
					<li class="red" id="save"><a href="#" title="">Save</a>
					<li class="blue" id="discard"><a href="#" title="">Discard</a>
				</ul>
			</div>
				
		</div>
	</div>
		

	
	<!-- Bottom fix area -->
	<div class="bottomfix">
	
		<div class="footer">
			<p>Copyright 2008-2009 <a href="http://workspaceat.com" title="#">Workspace@</a> in association with 
			   <a href="http://designstrategist.hr" title="#">Design strategist</a></p>
		</div>
		
	</div>
	
</body>
</html>